//package cn.rengy.web.framework.support.xss;
//
//import java.io.IOException;
//
//import javax.servlet.Filter;
//import javax.servlet.FilterChain;
//import javax.servlet.FilterConfig;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.servlet.annotation.WebFilter;
//import javax.servlet.http.HttpServletRequest;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.core.Ordered;
//import org.springframework.core.annotation.Order;
//
//
//@Order(Ordered.HIGHEST_PRECEDENCE)
//@WebFilter(filterName = "xssFilter", urlPatterns = "/*", asyncSupported = true)
//public class XssFilter implements Filter {
//
//    private static final Logger LOGGER = LoggerFactory.getLogger(XssFilter.class);
//
//    @Override
//    public void init(FilterConfig filterConfig) throws ServletException {
//        //LOGGER.debug("xssFilter initialized");
//    }
//
//    @Override
//    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
//        XssHttpServletRequestWrapper xssHttpServletRequestWrapper = new XssHttpServletRequestWrapper((HttpServletRequest) servletRequest);
//        filterChain.doFilter(xssHttpServletRequestWrapper, servletResponse);
//    }
//
//    @Override
//    public void destroy() {
//        LOGGER.debug("xssFilter destroy");
//    }
//}
